<?php
/**
 * Typograf/1.0
 */
//require_once ("typograf.php");

class cmsplg__textarea extends CmsPlugin2
{

	var $config;
	var $output;


	function GetIcon()
	{
		return "textarea.gif";
	}

	function GetTitle()
	{	
		return 'Текстовый блок';
	}



	function GetContent()
	{
		$this->mContentTable="cms__textarea";
		$this->textArea=true;
		$this->mContentFields=array("text");
		$this->mContentIdField='id';
		return array (new CARXRichEditTinyMCE("HTML","text"));
	}


	function GetOutput()
	{
		$table = new CARXTable('cms__textarea', "id = " . intval($this->mPluginId));
		$table->Open();
		$result = $table->GetField("text");
		$table->Close();

		

		return $result;
	}
}

?>